package com.it.jzs.service.impl;

import com.it.jzs.dao.admin.AdminTagMapper;
import com.it.jzs.pojo.Tag;
import com.it.jzs.service.TagService;
import com.it.jzs.vo.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TagServiceImpl implements TagService {
    @Resource
    private AdminTagMapper tagMapper;

    @Override
    public Result<Object> selectAllTag() {
        List<Tag> tags = tagMapper.selectList(null);
        return Result.success(tags, "获取标签数据成功");
    }
}
